<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.sun.xml.internal.fastinfoset.Encoder"%>
<%@ taglib prefix="s" uri="/struts-tags"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<title>北京天山--我的报价</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script language="javascript" src="/js/common/jquery-1.4.2.min.js"></script> 
<link href="/usercenter/css/usercenter.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="/usercenter/js/usercenter.js"></script>
<script language="javascript">
function sortPage(val) {
	window.location.href="/usercenter/quotation_query_Quotation.do?pages.currentPage="+val
}
</script>
</head>
  
<body>
<div class="main">
	<div class="maintable">
	    <table class="tblist" border="1" bordercolor="#e7e7e7" >
		  	<tr>
			  	<td colspan="10" class="maintitle" >
					<div class="maintitleimg"></div>
					<div class="maintitle_a">我的报价单列表</div>
			  	</td>
      	  	</tr>							 
		    <tr height="30">
			    <td colspan="10">
			    	<div style="float:left; width:10%;" class="title" >报价单号</div>
			    	<div style="float:left; width:10%;" class="title" >付款方式</div>
			    	<div style="float:left; width:10%;" class="title" >币种</div>
			    	<div style="float:left; width:10%;" class="title" >运输方式</div>
			    	<div style="float:left; width:10%;" class="title" >供应周期</div>
			    	<div style="float:left; width:10%;" class="title" >税率</div>
			    	<div style="float:left; width:10%;" class="title" >报价日期</div>
			    	<div style="float:left; width:10%;" class="title" >失效日期</div>
			    	<div style="float:left; width:10%;" class="title" >审核状态</div>
			    	<div style="float:left; width:10%;" class="title" >操作</div>
			    </td>
		    </tr>		
		    <s:iterator value="modelList" id="modelval" >
		  	<tr height="30" >
			    <td width="10%" align="center" ><a href="/usercenter/quotation_insert_Quotation.do?id=${modelval.quotationid }&action=view" >${modelval.code }</a></td>
			    <td width="10%" align="center" >
			    	<s:if test="#modelval.payType == 0">预付款  ${modelval.imprest }%</s:if>
			    	<s:if test="#modelval.payType == 1">月结  ${modelval.settlement }天</s:if>
			    </td>
			    <td width="10%" align="center" >${modelval.currency }</td>
			    <td width="10%" align="center" >${modelval.transportType }</td>
			    <td width="10%" align="center" >${modelval.supplyCycle }<s:if test="#modelval.supplyCycle != null" >天</s:if></td>
			    <td width="10%" align="center" >${modelval.taxRate }<s:if test="#modelval.taxRate != null" >%</s:if></td>
			    <td width="10%" align="center" ><s:date name="#modelval.quotationTime" format="yyyy-MM-dd"/></td>
			    <td width="10%" align="center" ><s:date name="#modelval.endTime" format="yyyy-MM-dd"/></td>
			    <td width="10%" align="center" ><s:if test="#modelval.status == 1">审核中</s:if><s:else >已保存</s:else></td>
			    <td width="10%" align="center" >
			    	<s:if test="#modelval.status != 1"><a href="/usercenter/quotation_operate_Quotation.do?id=${modelval.quotationid }&action=submit" >提交</a></s:if>
			    	<s:if test="#modelval.status != 1"><a href="/usercenter/quotation_insert_Quotation.do?id=${modelval.quotationid }&action=view" >编辑</a></s:if>
			    	<a href="/usercenter/quotation_delete_Quotation.do?id=${modelval.quotationid }" onclick="return deleteConfirm();" >删除</a>
			    </td>
	 	 	</tr>	
	 	 	</s:iterator>  			  
		  	<tr height="30" >
			  	<td align="center" colspan="10" >当前第${pages.currentPage }页，共${pages.pageCount }页${pages.allNum }条记录 			  	
					<s:if test="pages.currentPage > 1" ><a href="#" onclick="sortPage(1);">首页</a></s:if>
					 <s:else>首页 </s:else>|
					<s:if test="pages.currentPage > 1" ><a href="#"  onclick="sortPage(${pages.currentPage-1});">上一页</a></s:if>
					 <s:else>上一页 </s:else>|
					<s:if test="pages.currentPage < pages.pageCount" ><a href="#"  onclick="sortPage(${pages.currentPage+1 });">下一页</a> </s:if>
					 <s:else>下一页 </s:else>|
					<s:if test="pages.currentPage < pages.pageCount" ><a href="#"  onclick="sortPage(${pages.pageCount });">末页</a> </s:if>
					 <s:else>末页</s:else>
				</td>
      	  	</tr>
        </table>
	</div>
</div>
</body>
</html>
